%Read the data for the 113th House
[congressnum,icpsr,statecode,district,statename,partycode,meansoffice,name,votes]=read_data('./data/H113.ord');
%Clean the data
[votesm,missed,lopsided_votes]=clean_data(votes);
%Save the cleaned data in a MATLAB file
save('./data/house-113.mat','congressnum','icpsr','statecode','district','statename','partycode','meansoffice','name','votes','votesm','missed','lopsided_votes');
%Make holdouts
make_holdout(113,1:10,1);
%Run the one layer  SIV
[layer_one,R,motivations1,oos_lay1]=SIV_layer_one(113,1);
fprintf('113th House, oos accuracy for one layer model is %g\n',oos_lay1);
%Run the two layer SIV
[layer_two,motivations2,oos_lay2,r,k]=SIV_layer_two(113,1);
fprintf('113th House, oos accuracy for two layer model is %g using %g clusters and %g vectors.\n',oos_lay2, k, r);
